<?php

namespace App\Models;

use App\Libs\DataFormat;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserClaimProject extends Model
{

    use DataFormat;

    protected $table = 'user_claim_project';
    protected $dates = [''];

    protected $guarded = ['id', 'created_at'];

    public static  $formatKey = [ 'team_name'=>'string', 'created_at'=>'string'];

    public function user()
    {
        return $this->hasOne('App\Models\User', 'id', 'user_id');
    }

    public function project()
    {
        return $this->hasOne('App\Models\Project', 'id', 'project_id');
    }

}
